<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>


<c:if test="${success==true }">
   <div class="ts" style='height:40px;padding:1px;width:90%;'>
	  <div style='margin-top:15px;'><p align="center" style='color:'>添加成功</p></div>
	</div>
</c:if>
<c:if test="${success==false }">
   <div class="ts" style='height:40px;padding:1px;width:90%;'>
	  <div style='margin-top:15px;'><p align="center" style='color:'>添加失败</p></div>
	</div>
</c:if>

<div class='row-fluid'>
<table style="width: 100%" class="table table-hover ">
	          <c:choose>
					<c:when test="${empty ddts }">
						<tr>
							<td colspan="3" style="color: red" align="center">暂时没有新闻。可<a href='<%=basePath %>backend/addnewsui'>添加</a></td>
						</tr>
					</c:when>
					<c:when test="${not empty ddts}">
					    <tr>
					       <td style='' class='content_td1'>标题</td>
					      
					       <td  class='content_td3'>操作</td>
					    </tr>
						<c:forEach items="${ddts }" var="news" varStatus="status">
							<tr class='discuss'>
								<td class="content_td1 ">
								    <div class='newsTitle1'><a
									title='${news.ddtypeName}'>
									<span >${news.ddtypeName}</span>
									</a></div>
								</td> 
								<td class="content_td3"><a href='#'><button te='${news.ddtypeId }' url='delfiletype' backurl='mgfiletypeui' style='width:80px;'  class='del btn btn-danger'>删除</button></a>
								  |	<a href='<%=basePath %>backend/updatefiletypeui/${news.ddtypeId }' style='width:80px;' class="update btn btn-warning"  >
                                                                                          修改
                                   </a>
                                   <!-- Modal -->
                           
								</td>
						</c:forEach>
						
					</c:when>
				</c:choose>
				</table>
</div>

